// 找到头文件
#include <csignal>
#include <workflow/WFFacilities.h>
#include <iostream>

using namespace std;

//定义全局变量
static WFFacilities::WaitGroup waitGroup(2);
 
void signalhandler(int signum){
    waitGroup.done(); //每done一次，等待的n就-1
}

int main(){
    signal(SIGINT, signalhandler);
    waitGroup.wait();
    cout << "finished!\n";

    return 0;
}